Description
This sample demonstrates how you can load MP3 audio files from a drive
or server into a movie at runtime. There are no sounds in the library
of the source file for this sample. It also contains a dynamically resizable
playback controller that enables you to navigate through the loaded sound.
Key features and ActionScript elements
Sound object (position, duration, loadSound, onSoundComplete), buttons,
Key object, Text Field object, components, Live Preview
Instructions
Load a new sound by clicking the Previous and Next buttons or enter a
value between 1 and 3 in the Sound # text field and press Enter. Click
the buttons on the playback controller to play, stop, step through, or
go to the beginning or end of the sound. If the Loop option is toggled
on, the sound will start over when it reaches its end, otherwise it will
stop. You can drag the square button in the scrub bar to select a new
position in the sound.
The source file for this movie (Load_sounds.fla) and the Live Preview
file for the playback controller (Controller_preview.fla) can be found
on the Flash MX CD in the Goodies/Samples/FLA folder.